<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">

<!--
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>

<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
-->


<load href='__PUBLIC__/lib/html5.js' />
<load href='__PUBLIC__/lib/respond.min.js' />
<load href='__PUBLIC__/lib/PIE_IE678.js' />

<load href='__PUBLIC__/css/H-ui.min.css' />
<load href='__PUBLIC__/css/H-ui.admin.css' />
<load href='__PUBLIC__/lib/icheck/icheck.css' />      
<load href='__PUBLIC__/lib/Hui-iconfont/1.0.1/iconfont.css' />

<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>

<title>编辑会员信息</title>
</head>
<body>
<div class="pd-20">

  <form action="{:U('User/update')}" method="post" class="form form-horizontal" id="form-member-add">
    
    <input type="hidden" name='id' value="{$data.id}"  />

    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>用户名：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" value="{$data.username}" placeholder="" id="member-name" name="username" datatype="*2-16" nullmsg="用户名不能为空">
      </div>
      <div class="col-4"> </div>
    </div>

    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>性别：</label>
      <div class="formControls col-5 skin-minimal">
        <div class="radio-box">
          <input type="radio" id="sex-1" name="sex" value='1' {$data['sex']==1?'checked':''} datatype="*" nullmsg="请选择性别！">
          <label for="sex-1">男</label>
        </div>
        <div class="radio-box">
          <input type="radio" id="sex-2" name="sex" value='0' {$data['sex']==0?'checked':''}>
          <label for="sex-2">女</label>
        </div>
       
      </div>
      <div class="col-4"> </div>
    </div>

    
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>电话：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" placeholder="" id="member-name" name="phone" value="{$data.phone}" datatype="*2-16" nullmsg="电话不能为空">
      </div>
      <div class="col-4"> </div>
    </div>

    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>地址：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" placeholder="" id="member-name" name="address" value="{$data.address}" datatype="*2-16" nullmsg="地址不能为空">
      </div>
      <div class="col-4"> </div>
    </div>

    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>邮编：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" placeholder="" id="member-name" name="code" value="{$data.code}" datatype="*2-16" nullmsg="邮编不能为空">
      </div>
      <div class="col-4"> </div>
    </div>

    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>邮件：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" placeholder="" id="member-name" name="email" value="{$data.email}" datatype="*2-16" nullmsg="邮件不能为空">
      </div>
      <div class="col-4"> </div>
    </div>


    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>权限：</label>
      <div class="formControls col-5 skin-minimal">
        <div class="radio-box">
          <input type="radio" id="sex-1" name="state" value='1' {$data['state']==1?'checked':''} datatype="*" nullmsg="请选择权限！">
          <label for="sex-1">普通会员</label>
        </div>
        <div class="radio-box">
          <input type="radio" id="sex-2" name="state" value='0' {$data['state']==0?'checked':''}>
          <label for="sex-2">管理员</label>
        </div>
       <!-- <div class="radio-box">
          <input type="radio" id="sex-2" name="state" value='2' {$data['state']==2?'checked':''}>
          <label for="sex-2">商家</label>
        </div>-->
      </div>
      <div class="col-4"> </div>
    </div>

    <div class="row cl">
      <div class="col-9 col-offset-3">
        <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
      </div>
    </div>

  </form>
</div>
</div>
<!--
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="lib/layer/1.9.3/layer.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script>
-->

<load href='__PUBLIC__/lib/jquery/1.9.1/jquery.min.js' />
<load href='__PUBLIC__/lib/icheck/jquery.icheck.min.js' />
<load href='__PUBLIC__/lib/Validform/5.3.2/Validform.min.js' />

<load href='__PUBLIC__/lib/layer/1.9.3/layer.js' />      
<load href='__PUBLIC__/js/H-ui.js' />
<load href='__PUBLIC__/js/H-ui.admin.js' />
<!--
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$("#form-member-add").Validform({
		tiptype:2,
		callback:function(form){
			form[0].submit();
			var index = parent.layer.getFrameIndex(window.name);
			parent.$('.btn-refresh').click();
			parent.layer.close(index);
		}
	});
});
</script>
-->
</body>
</html>
